Displaying Mail-History Records

The Data ONTAP 10.0 system keeps a list of e-mailed event notifications. You can view this list by using the event mailhistory show command. The command displays the following information:

Other information is displayed in a detailed view and if other parameters are specified. See the reference page for the command for details.

The following example displays the list of e-mailed event notifications.

node::> event mailhistory show
Seq #   Message Name         Address             Node        Time    
1       app.log.emerg        admin@example.com   node0a      12/8/2005
                                                              22:44:12
2       app.log.emerg        admin@example.com   node0a      12/8/2005
                                                              22:51:43
3       app.log.emerg        admin@example.com   node0a      12/9/2005
                                                              00:56:28
4       wafl.vol.full        admin@example.com   node1b      1/5/2006
                                                              12:52:23
5       wafl.vol.full        admin@example.com   node1b      1/5/2006
                                                              12:52:36
6       wafl.vol.full        admin@example.com   node1b      1/5/2006
                                                              12:52:51
7       wafl.vol.full        admin@example.com   node1b      1/5/2006
                                                              12:53:06
Press <space> to page down, <return> for next line, or 'q' to quit... 

Deleting a Mail-History Record

You can delete mail-history records by using the event mailhistory delete command. You can delete a single record by specifying its sequence number, or multiple records by specifying a pattern. The following example deletes all mail-history records.

node::> event mailhistory delete -seqnum *